package com.heima.springbootdemo01.controller;

import com.heima.springbootdemo01.bean.Result;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/emp")
public class EmpController {
    @PostMapping
    public Result save(){
        return Result.success("添加成功");
    }
    @DeleteMapping
    public String delete(){
        return "删除成功";
    }
    @PutMapping
    public String put(){
        return "修改成功";
    }
    @GetMapping
    public String get(){
        return "查询成功";
    }






}
